const theme = {
  state: () => ({
    theme: "light",
  }),
  mutations: {
    setTheme(state, payload) {
      // 这里的 `state` 对象是模块的局部状态
      state.theme = payload.theme;
    },
  },
};
export default theme;
